import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login/index'
import NotFound from "@/views/NotFound/index";
import Page1 from '@/views/Page/index'
import chosePerson from '@/components/chosePerson/index'
Vue.use(Router)

export default new Router({
  routes: [{
      path: "/404",
      component: NotFound
    }, {
      path: "*",
      redirect: "/404"
    },
    {
      path: '/',
      redirect: '/Page1'
    },
    {
      path: '/Login/:ip?',
      component: Login
    },
    {
      path: '/Page1',
      component: Page1
    },
    {
      path: '/chosePerson',
      component: chosePerson
    }
  ]
})
